package com.ruoyi.jhc.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.jhc.mapper.JhcBhcwfMapper;
import com.ruoyi.jhc.domain.JhcBhcwf;
import com.ruoyi.jhc.service.IJhcBhcwfService;

/**
 * 白灰外发录入Service业务层处理
 * 
 * @author wy
 * @date 2023-03-04
 */
@Service
public class JhcBhcwfServiceImpl implements IJhcBhcwfService 
{
    @Autowired
    private JhcBhcwfMapper jhcBhcwfMapper;

    /**
     * 查询白灰外发录入
     * 
     * @param cDate 白灰外发录入主键
     * @return 白灰外发录入
     */
    @Override
    public JhcBhcwf selectJhcBhcwfByCDate(String cDate)
    {
        return jhcBhcwfMapper.selectJhcBhcwfByCDate(cDate);
    }

    /**
     * 查询白灰外发录入列表
     * 
     * @param jhcBhcwf 白灰外发录入
     * @return 白灰外发录入
     */
    @Override
    public List<JhcBhcwf> selectJhcBhcwfList(JhcBhcwf jhcBhcwf)
    {
        return jhcBhcwfMapper.selectJhcBhcwfList(jhcBhcwf);
    }

    /**
     * 新增白灰外发录入
     * 
     * @param jhcBhcwf 白灰外发录入
     * @return 结果
     */
    @Override
    public int insertJhcBhcwf(JhcBhcwf jhcBhcwf)
    {
        return jhcBhcwfMapper.insertJhcBhcwf(jhcBhcwf);
    }

    /**
     * 修改白灰外发录入
     * 
     * @param jhcBhcwf 白灰外发录入
     * @return 结果
     */
    @Override
    public int updateJhcBhcwf(JhcBhcwf jhcBhcwf)
    {
        return jhcBhcwfMapper.updateJhcBhcwf(jhcBhcwf);
    }

    /**
     * 批量删除白灰外发录入
     * 
     * @param cDates 需要删除的白灰外发录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcBhcwfByCDates(String[] cDates)
    {
        return jhcBhcwfMapper.deleteJhcBhcwfByCDates(cDates);
    }

    /**
     * 删除白灰外发录入信息
     * 
     * @param cDate 白灰外发录入主键
     * @return 结果
     */
    @Override
    public int deleteJhcBhcwfByCDate(String cDate)
    {
        return jhcBhcwfMapper.deleteJhcBhcwfByCDate(cDate);
    }
}
